import request, { download } from '@/utils/request'

// 广告列表
export function getsystemList (query) {
  return request({
    url: '/function/adv/list',
    method: 'get',
    params: query
  })
}
// 广告列表
export function deleteAdv (query) {
  return request({
    url: `/function/adv/${query}`,
    method: 'delete',
    // params: 
  })
}
// 广告列表
export function putChangeSort (data) {
  return request({
    url: `/function/adv/changeSort`,
    method: 'put',
    data
  })
}
// 新增广告列表
export function postCreatedAdv (data) {
  return request({
    url: `/function/adv`,
    method: 'post',
    data
  })
}
// 修改广告列表
export function putUpdatedAdv (data) {
  return request({
    url: `/function/adv`,
    method: 'put',
    data
  })
}